perm filename EXAMPL.TEX[TEX,DEK] blob sn#716775 filedate 1983-06-24 generic text, type T, neo UTF8
\font\tenrm=amr10 \tenrm
\catcode`\|=5
% This test file generates the output shown on the opposite page. |01
% It's a bit complex because it tries to illustrate lots of stuff.|02
% TeX ignores commentary (like this) that follows a `%' sign.     |03
                                                                  |04
% First the standard output style is changed slightly:            |05
\hsize=29pc % The lines in this book are 29 picas wide.           |06
\vsize=42pc % The page body is 42 picas (not counting footlines). |07
\footline={\tenrm Footline\quad\dotfill\quad Page \folio}         |08
\pageno=1009 % This is the starting page number (don't ask why).  |09
% See Chapter 23 for the way to make other page format changes via|10
% \hoffset, \voffset, \nopagenumbers, \headline, or \raggedbottom.|11
                                                                  |12
\vspace 1in % This makes an inch of blank space (1in=2.54cm).     |13
\centerline{\bf A Bold, Centered Title}                           |14
\smallskip % This gives a little extra space between lines here.  |15
\rightline{\it avec un sous-titre \`a la fran\c caise}            |16
% Now we use \beginsection to introduce part 1 of the document.   |17
\beginsection 1. Plain \TeX nology % The next line must be blank! |18
                                                                  |19
The first paragraph of a new section is not indented.             |20
\TeX\ recognizes the end of a paragraph when it comes to a blank  |21
line in your manuscript file. % or to a `\par': see below.        |22
                                                                  |23
Subsequent paragraphs {\it are\/} indented.\footnote*{The amount  |24
 of indentation can be changed by changing a parameter called     |25
{\tt\char`\\parindent}. Turn the page for a summary of \TeX's most|26
important parameters.} (See?) The computer breaks a paragraph's   |27
text into lines in a interesting way---see reference~[1]---and hy%|28
phenates words automatically  when necessary.                     |29
                                                                  |30
\midinsert % This begins inserted material, e.g., a figure.       |31
\narrower\narrower % This brings the margins in (see Chapter 14). |32
\noindent \llap{``}If there hadn't been room for this material on |33
the present page, it would have been inserted on the next one.''  |34
\endinsert % This ends the insertion and the effect of \narrower. |35
                                                                  |36
\proclaim Theorem T. The typesetting of $math$ is discussed in    |37
Chapters 16--19, and math symbols are summarized in Appendix~F.   |38
                                                                  |39
\beginsection 2. Bibliography\par % `\par' acts like a blank line.|40
\frenchspacing % (Chapter 12 recommends this for bibliographies.) |41
\item{[1]} D.~E. Knuth and M.~F. Plass, ``Breaking paragraphs     |42
into lines,'' {\sl Softw. pract. exp. \bf11} (1981), 1119--1184.  |43
\bye % This is the way the file ends, not with a \bang but a \bye.|44